package com.dding.cms.base.entity;

import org.javalite.activejdbc.Model;
import org.javalite.activejdbc.annotations.BelongsTo;
import org.javalite.activejdbc.annotations.IdName;
import org.javalite.activejdbc.annotations.Many2Many;
import org.javalite.activejdbc.annotations.Table;

@Table("jc_content")
@IdName("content_id")
@Many2Many(
		other = Channel.class,
		join = "jc_content_channel",
		sourceFKName = "content_id",
		targetFKName = "channel_id")
@BelongsTo(parent = BaseModel.class, foreignKeyName = "model_id")
public class Content extends Model {

}
